#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
char* my_strcat(char* dest, const char* src)
{
	assert(src && dest);
	char* ret = dest;
	while (*dest)
	{
		dest++;
	}
	while (*dest++ = *src++)
	{
		;
	}
	return ret;
}


int main()
{
	char arr[30] = "abcdef ";
	char str[] = "xxx";
	char* ret = my_strcat(arr, str);
	printf("%s", ret);
	return 0;
}